home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / useprintermarginsdialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-03-14  |  1.6 KB  |  47 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.                           useprintermarginsdialog.cpp  -  description
  9.                              -------------------
  10.     copyright            : (C) 2006 by Craig Bradney
  11.     email                : cbradney@zip.com.au
  12.  ***************************************************************************/
  13.  
  14. #ifndef USEPRINTERMARGINSDIALOG_H
  15. #define USEPRINTERMARGINSDIALOG_H
  16.  
  17. #include "ui_useprintermarginsdialog.h"
  18.  
  19. #include "scribusapi.h"
  20.  
  21. class SCRIBUS_API UsePrinterMarginsDialog : public QDialog, Ui::UsePrinterMarginsDialog
  22. {
  23.     Q_OBJECT
  24.  
  25.     public:
  26.         UsePrinterMarginsDialog(QWidget* parent, const QString& pageSize, double unitRatio, const QString& suffix);
  27.         ~UsePrinterMarginsDialog();
  28.         /**
  29.          * Return the new printer sourced margins in PostScript points (72dpi).
  30.          * @param topMargin 
  31.          * @param bottomMargin 
  32.          * @param leftMargin 
  33.          * @param rightMargin 
  34.          */
  35.         void getNewPrinterMargins(double &topMargin,double &bottomMargin,double &leftMargin,double &rightMargin);
  36.     protected slots:
  37.         void getPrinterMarginValues(const QString& printerName);
  38.         
  39.     protected:
  40.         QString m_pageSize;
  41.         double m_unitRatio;
  42.         QString m_suffix;
  43.         double m_ptsTopMargin,m_ptsBottomMargin,m_ptsLeftMargin,m_ptsRightMargin;
  44. };
  45.  
  46. #endif
  47.